package com.example.yichuangyun.model.order;

import java.util.ArrayList;
import java.util.List;

public class CreateOrderReqModel {
    private String businessId;
    /**
     * 2线下订单
     */
    private int orderType = 2;
    private double productTotalPrice;
    private double sumPrice;
    private String signDate;
    private String signUserId;
    private List<ProductListReqModel> productList = new ArrayList<>();
    private List<AttachmentModel> approvalFileInfo = new ArrayList<>();

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public int getOrderType() {
        return orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public double getProductTotalPrice() {
        return productTotalPrice;
    }

    public void setProductTotalPrice(double productTotalPrice) {
        this.productTotalPrice = productTotalPrice;
    }

    public double getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(double sumPrice) {
        this.sumPrice = sumPrice;
    }

    public String getSignDate() {
        return signDate;
    }

    public void setSignDate(String signDate) {
        this.signDate = signDate;
    }

    public String getSignUserId() {
        return signUserId;
    }

    public void setSignUserId(String signUserId) {
        this.signUserId = signUserId;
    }

    public List<ProductListReqModel> getProductList() {
        return productList;
    }

    public void setProductList(List<ProductListReqModel> productList) {
        this.productList = productList;
    }

    public List<AttachmentModel> getApprovalFileInfo() {
        return approvalFileInfo;
    }

    public void setApprovalFileInfo(List<AttachmentModel> approvalFileInfo) {
        this.approvalFileInfo = approvalFileInfo;
    }

    public static class ProductListReqModel {
        private List<ServiceReqModel> serviceList;
        private String productId;
        private double productPrice;
        private double discountProductPrice;

        public ProductListReqModel() {
        }

        public ProductListReqModel(String productId, double productPrice, double discountProductPrice) {
            this.productId = productId;
            this.productPrice = productPrice;
            this.discountProductPrice = discountProductPrice;
        }

        public List<ServiceReqModel> getServiceList() {
            return serviceList;
        }

        public void setServiceList(List<ServiceReqModel> serviceList) {
            this.serviceList = serviceList;
        }

        public String getProductId() {
            return productId;
        }

        public void setProductId(String productId) {
            this.productId = productId;
        }

        public double getProductPrice() {
            return productPrice;
        }

        public void setProductPrice(double productPrice) {
            this.productPrice = productPrice;
        }

        public double getDiscountProductPrice() {
            return discountProductPrice;
        }

        public void setDiscountProductPrice(double discountProductPrice) {
            this.discountProductPrice = discountProductPrice;
        }
    }

    public static class ServiceReqModel {
        private String serviceName;
        private String serviceId;
        private String serviceCostId;
        private List<AttrReqModel> attrsName;
        private String serviceCycle;
        private Integer servicePeriod;

        public ServiceReqModel() {
        }

        public ServiceReqModel(String serviceName, String serviceId, String serviceCostId) {
            this.serviceName = serviceName;
            this.serviceId = serviceId;
            this.serviceCostId = serviceCostId;
        }

        public String getServiceName() {
            return serviceName;
        }

        public void setServiceName(String serviceName) {
            this.serviceName = serviceName;
        }

        public String getServiceId() {
            return serviceId;
        }

        public void setServiceId(String serviceId) {
            this.serviceId = serviceId;
        }

        public List<AttrReqModel> getAttrsName() {
            return attrsName;
        }

        public void setAttrsName(List<AttrReqModel> attrsName) {
            this.attrsName = attrsName;
        }

        public String getServiceCycle() {
            return serviceCycle;
        }

        public void setServiceCycle(String serviceCycle) {
            this.serviceCycle = serviceCycle;
        }

        public Integer getServicePeriod() {
            return servicePeriod;
        }

        public void setServicePeriod(Integer servicePeriod) {
            this.servicePeriod = servicePeriod;
        }
    }

    public static class AttrReqModel {
        private String attrMsg;
        private String price;

        public AttrReqModel(String attrMsg, String price) {
            this.attrMsg = attrMsg;
            this.price = price;
        }

        public String getAttrMsg() {
            return attrMsg;
        }

        public void setAttrMsg(String attrMsg) {
            this.attrMsg = attrMsg;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }
    }
}
